﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MinGuiLuo;
using MinGuiLuo.MetaModel;
using MinGuiLuo.PluginSystem;

namespace ControlPowerWinFrom
{
    public class MyMenus : ModulePlugin
    {
        public override void Initialize(IClientApp app)
        {
            app.ModuleOperations += (o, e) =>
            {
                var moduleBookImport = CommonModel.Modules.AddRoot(new ModuleMeta
                {
                    Label = "权限管理",
                    Children =
                    {
                        new ModuleMeta{ Label = "角色管理",WinFromTemplateType=typeof(RoleFrm)},
                        new ModuleMeta{ Label = "用户管理",WinFromTemplateType=typeof(UserFrm)},
                        new ModuleMeta{ Label = "图书管理员"},
                        new ModuleMeta{ Label = "书籍查询"}
                    }
                });
            };
        }
    }
}
